LDRA Testbed ® Code Review Report

Group : IRSSI-lib-config






Overall Result: FAIL






Report Production Report Configuration Analysis phases
  • C/C++ LDRA Testbed Version: 8.1.0
  • Config. File: C:\Testbed_CCPP_810\c\creport.dat
  • Produced On: Thu Sep 03 2009 at 12:57:05
  • Penalty File: C:\Testbed_CCPP_810\c\cpen.dat
  • Report Level: Summary Report
  • Procedures Reported: Fails Only
  • Programming Standards Model: CERT
  • Line Numbers refer to: Original Source File
  • Violation Details: Violations Only
  • Reporting Scope: Full analysis scope
  • Static: Yes
  • Complexity: No
  • Static Data Flow: No
  • Information Flow: No
  • Cross Reference: No


Contents

Overall Quality Summary
Report on Program Components
Key to Terms





Overall Quality Summary



Totals of Violations for Selected Quality Standards

'-' indicates required Analysis Phase results are not yet available.
'Off' indicates that the standard is switched off in the Penalty File (<lang>pen.dat).
'MR'indicates that the standard is Misra Restricted.

Number of Violations LDRA Code (M) Mandatory Standards CERT Code
2
9 S CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
0
20 S CERT DCL31-C
0
30 S CERT EXP30-C,EXP31-C
-
5 D CERT EXP33-C
0
39 S CERT FLP30-C
0
43 S CERT ENV33-C,SIG32-C
0
47 S CERT ARR30-C
6
71 S CERT DCL30-C,MEM36-C
0
86 S CERT ERR31-C
9
93 S CERT INT01-C,INT02-C,INT07-C
4
94 S CERT EXP11-C,EXP36-C,INT11-C
30
98 S CERT EXP37-C
-
17 D CERT DCL32-C
-
19 D CERT EXP37-C
-
20 D CERT DCL31-C,ERR30-C
-
24 D CERT DCL31-C
-
1 X CERT ARR31-C
0
134 S CERT EXP10-C,EXP30-C
-
35 D CERT EXP02-C,EXP10-C,EXP30-C
0
1 Q CERT EXP02-C,EXP10-C,EXP30-C
8
157 S CERT STR05-C,STR30-C
168
170 S CERT DCL07-C,EXP37-C
-
41 D CERT EXP37-C
-
42 D CERT DCL30-C
-
43 D CERT INT32-C,INT33-C
0
248 S CERT INT33-C
-
45 D CERT EXP08-C,EXP34-C
-
49 D CERT FIO42-C
0
326 S CERT DCL31-C
0
344 S CERT EXP32-C
-
51 D CERT MEM30-C
0
355 S CERT DCL32-C
0
403 S CERT INT34-C
8
433 S CERT INT02-C,INT31-C
1
434 S CERT INT02-C,INT31-C,STR34-C
0
442 S CERT INT02-C,FLP33-C
0
443 S CERT INT02-C,FLP33-C
0
444 S CERT FLP33-C
0
456 S CERT MSC31-C
-
57 D CERT EXP33-C
0
476 S CERT ARR30-C
0
480 S CERT DCL33-C
0
483 S CERT MEM34-C
0
484 S CERT MEM31-C
0
487 S CERT MEM35-C
0
489 S CERT DCL33-C,FIO43-C
0
493 S CERT INT32-C
0
494 S CERT INT32-C
153
496 S CERT EXP37-C
-
61 X CERT DCL32-C

Number of Violations LDRA Code (M) Mandatory Standards CERT Code
-
64 X CERT ARR30-C
-
69 D CERT EXP33-C
0
562 S Use of ++,-- or = in macro parameters. CERT PRE31-C
-
75 D CERT FIO31-C
-
68 X CERT DCL00-C
-
69 X CERT ARR30-C
0
573 S Macro concatenation of uni char names. CERT PRE30-C
0
575 S Linkage differs from previous declaration. CERT DCL36-C
0
576 S Function pointer is of wrong type. CERT DCL35-C,EXP08-C


Number of Violations LDRA Code (C) Checking (Mandatory) Standards CERT Code

No Standards have been set as Checking.

Number of Violations LDRA Code (O) Optional Standards CERT Code
0
5 S CERT MSC03-C
74 12 S CERT MSC01-C
0
21 S CERT DCL07-C
-
1 D CERT MSC13-C
-
4 D CERT MSC13-C
-
7 D CERT MSC13-C
-
8 D CERT MSC08-C
-
15 D CERT MSC13-C
0
41 S CERT DCL10-C,DCL11-C
12 44 S CERT DCL03-C,INT06-C
0
50 S CERT INT13-C
0
52 S CERT INT02-C
0
54 S CERT EXP06-C
2 57 S CERT MSC03-C,MSC12-C
0
58 S CERT MSC03-C
0
59 S CERT MSC03-C
0
73 S CERT INT12-C
17 79 S CERT PRE03-C
0
81 S CERT PRE07-C
0
85 S CERT INT09-C
7 95 S CERT EXP11-C
0
99 S CERT MSC02-C
0
101 S CERT INT02-C
-
27 D CERT DCL15-C
0
113 S CERT MSC09-C
18 77 S CERT PRE02-C
1 78 S CERT PRE01-C,PRE02-C
6 96 S CERT INT02-C
0
115 S CERT STR03-C
0
119 S CERT MSC04-C
2 120 S CERT INT13-C
0
125 S CERT PRE05-C
2 131 S CERT DCL01-C
0
132 S CERT MSC02-C
0
133 S CERT EXP02-C
0
135 S CERT DCL07-C
0
139 S CERT MSC07-C
0
140 S CERT MSC07-C
0
176 S CERT MSC10-C
7 177 S CERT DCL04-C
3 200 S CERT DCL00-C
114 201 S CERT DCL06-C,EXP07-C,EXP09-C
4 203 S CERT EXP05-C
0
218 S CERT PRE04-C
4 243 S CERT PRE06-C
36 273 S CERT PRE03-C
0
299 S CERT DCL05-C
0
1 J CERT MSC07-C
2 302 S CERT MSC04-C
0
329 S CERT INT07-C

Number of Violations LDRA Code (O) Optional Standards CERT Code
4 331 S CERT INT13-C
0
332 S CERT INT02-C
0
334 S CERT INT02-C
2 340 S CERT PRE00-C
0
352 S CERT DCL12-C
-
50 D CERT MEM00-C
31 361 S CERT EXP00-C
0
376 S CERT MSC10-C
3 381 S CERT DCL05-C
9 382 S CERT EXP12-C
-
53 D CERT EXP08-C
0
387 S CERT DCL08-C
0
400 S CERT EXP03-C
0
401 S CERT ARR00-C
0
406 S CERT EXP02-C
-
54 D CERT EXP08-C
0
408 S CERT EXP02-C
0
432 S CERT INT07-C
0
438 S CERT EXP08-C
0
439 S CERT INT15-C
0
440 S CERT INT15-C
0
446 S CERT INT02-C
0
452 S CERT INT02-C
0
457 S CERT INT02-C
30 458 S CERT INT02-C,INT07-C
0
486 S CERT FIO00-C
0
488 S CERT INT08-C
0
491 S CERT INT02-C
-
61 D CERT DCL15-C
-
62 D CERT DCL13-C
0
515 S CERT DCL04-C
-
65 D CERT MSC12-C
-
70 D CERT MSC12-C
0
553 S Function and proto should both be static. CERT DCL15-C
-
72 D CERT EXP10-C
-
67 X CERT DCL02-C
-
74 D CERT EXP10-C
0
568 S #include "filename" uses standard library name. CERT PRE04-C
0
577 S Sizeof argument is a pointer. CERT EXP01-C
0
578 S Sizeof used in arithmetic expression. CERT EXP03-C
-
78 D CERT DCL00-C
0
584 S Remainder of % op could be negative. CERT INT10-C
5 585 S Bitwise and arith operations on same data. CERT INT14-C
0
586 S Format is not %j for user defined type. CERT INT15-C


Number of Mandatory Standards checked 39
Number of Checking Standards checked 0
Number of Optional Standards checked 77
Total Standards checked 116






OVERALL RESULT: FAIL




Out of 55 program components, 7 (12.73 %) pass ( of which 4 conditionally pass ) and 48 fail ( of which 0 fail only because of insufficient comments )

Procedure Results

Quality Result   Procedure   Source File   Unique Violations    
           
Conditional Pass Global Program
FAIL config_node_find get.c 2 -
Conditional Pass config_node_section get.c 1 -
FAIL config_node_section_index get.c 2 -
FAIL config_node_traverse get.c 4 -
FAIL config_get_str get.c 4 -
FAIL config_get_int get.c 2 -
FAIL config_get_bool get.c 2 -
FAIL config_node_get_str get.c 2 -
FAIL config_node_get_int get.c 2 -
FAIL config_node_get_bool get.c 2 -
FAIL config_node_get_list get.c 3 -
FAIL config_node_nth get.c 2 -
FAIL config_node_index get.c 2 -
Conditional Pass config_node_first get.c 1 -
Pass config_node_next get.c 0
FAIL g_istr_equal parse.c 2 -
FAIL g_istr_hash parse.c 4 -
FAIL config_error parse.c 2 -
FAIL node_add_comment parse.c 2 -
FAIL config_parse_get_token parse.c 2 -
FAIL config_parse_peek_token parse.c 2 -
FAIL config_parse_warn_missing parse.c 1 -
FAIL config_parse_symbol parse.c 3 -
FAIL config_parse_loop parse.c 1 -
FAIL config_parse_error_func parse.c 1 -
FAIL config_parse_init parse.c 2 -
FAIL config_parse parse.c 3 -
FAIL config_parse_data parse.c 1 -
FAIL config_open parse.c 3 -
FAIL config_close parse.c 1 -
FAIL config_change_file_name parse.c 2 -
FAIL cache_remove set.c 1 -
FAIL config_node_remove set.c 2 -
FAIL config_node_list_remove set.c 1 -
FAIL config_node_clear set.c 2 -
FAIL config_nodes_remove_all set.c 2 -
FAIL config_node_set_str set.c 2 -
FAIL config_node_set_int set.c 1 -
Pass config_node_set_bool set.c 0
FAIL config_set_str set.c 2 -
FAIL config_set_int set.c 1 -
Pass config_set_bool set.c 0
FAIL config_node_add_list set.c 1 -
FAIL config_write_indent write.c 2 -
FAIL config_write_str write.c 3 -
FAIL config_has_specials write.c 2 -
FAIL config_escape_string write.c 2 -
FAIL config_write_word write.c 2 -

Quality Result   Procedure   Source File   Unique Violations    
           
FAIL config_write_node write.c 3 -
FAIL config_node_get_length write.c 2 -
Conditional Pass config_block_get_length write.c 1 -
FAIL config_block_fit_one_line write.c 2 -
FAIL config_write_block write.c 3 -
FAIL config_write write.c 4 -


Global Information

Source Files in Group

Name Last Modification Date
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\irssi\irssi-0.8.14\src\lib-config\write.c Tue Jul 21 11:48:06 2009
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\irssi\irssi-0.8.14\src\lib-config\set.c Tue Jul 21 11:48:06 2009
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\irssi\irssi-0.8.14\src\lib-config\parse.c Tue Jul 21 11:48:06 2009
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\irssi\irssi-0.8.14\src\lib-config\get.c Tue Jul 21 11:48:06 2009




Global Basic Information

Number of procedures: 54
Number of locally uncalled procedures: 0
Number of reformatted executable lines: 1848
Number of lines of comments: 361



Summary Report on all Program Components



Globals / code outside procedures - Conditional Pass

Standards Violation Summary - All files

Code File: Src Line Violation Standard
O get.c: 21 Included file not protected with #define. CERT PRE06-C
O common.h: 4 Found #define. CERT PRE03-C
O common.h: 6 Found #define. CERT PRE03-C
O common.h: 7 Found #define. CERT PRE03-C
O common.h: 9 Found #define. CERT PRE03-C
O common.h: 9 Define used for numeric constant. CERT DCL00-C
O common.h: 47 Found #define. CERT PRE03-C
O common.h: 48 Found #define. CERT PRE03-C
O common.h: 49 Found #define. CERT PRE03-C
O common.h: 50 Found #define. CERT PRE03-C
O common.h: 51 Found #define. CERT PRE03-C
O common.h: 52 Found #define. CERT PRE03-C
O common.h: 56 Found #define. CERT PRE03-C
O common.h: 70 Found #define. CERT PRE03-C
O common.h: 71 Found #define. CERT PRE03-C
O common.h: 71 Literal value requires a U suffix. CERT INT13-C
O common.h: 86 Found #define. CERT PRE03-C
O common.h: 86 Literal value requires a U suffix. CERT INT13-C
O common.h: 86 Macro contains unacceptable items CERT PRE03-C
O common.h: 88 Found #define. CERT PRE03-C
O common.h: 88 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O common.h: 88 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 90 Found #define. CERT PRE03-C
O common.h: 93 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 93 Macro contains unacceptable items CERT PRE03-C
O common.h: 96 Found #define. CERT PRE03-C
O common.h: 96 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 96 Macro contains unacceptable items CERT PRE03-C
O common.h: 97 Found #define. CERT PRE03-C
O common.h: 97 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 97 Macro contains unacceptable items CERT PRE03-C
O common.h: 98 Found #define. CERT PRE03-C
O common.h: 98 Use of banned function or variable. CERT DCL03-C,INT06-C
O common.h: 98 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 98 Macro contains unacceptable items CERT PRE03-C
O common.h: 99 Found #define. CERT PRE03-C
O common.h: 99 Use of banned function or variable. CERT DCL03-C,INT06-C
O common.h: 99 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 99 Macro contains unacceptable items CERT PRE03-C
O common.h: 100 Found #define. CERT PRE03-C
O common.h: 100 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 100 Macro contains unacceptable items CERT PRE03-C
O common.h: 101 Found #define. CERT PRE03-C
O common.h: 101 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 101 Macro contains unacceptable items CERT PRE03-C
O common.h: 102 Found #define. CERT PRE03-C
O common.h: 102 Use of banned function or variable. CERT DCL03-C,INT06-C
O common.h: 102 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 102 Macro contains unacceptable items CERT PRE03-C
O common.h: 103 Found #define. CERT PRE03-C

Code File: Src Line Violation Standard
O common.h: 103 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 103 Macro contains unacceptable items CERT PRE03-C
O common.h: 104 Found #define. CERT PRE03-C
O common.h: 104 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 104 Macro contains unacceptable items CERT PRE03-C
O common.h: 105 Found #define. CERT PRE03-C
O common.h: 105 Use of banned function or variable. CERT DCL03-C,INT06-C
O common.h: 105 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 105 Macro contains unacceptable items CERT PRE03-C
O common.h: 106 Found #define. CERT PRE03-C
O common.h: 106 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 106 Macro contains unacceptable items CERT PRE03-C
O common.h: 107 Found #define. CERT PRE03-C
O common.h: 107 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 107 Macro contains unacceptable items CERT PRE03-C
O common.h: 108 Found #define. CERT PRE03-C
O common.h: 108 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 108 Macro contains unacceptable items CERT PRE03-C
O common.h: 109 Found #define. CERT PRE03-C
O common.h: 109 Use of banned function or variable. CERT DCL03-C,INT06-C
O common.h: 109 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 109 Macro contains unacceptable items CERT PRE03-C
O common.h: 110 Found #define. CERT PRE03-C
O common.h: 110 Macro replacement list needs parentheses. CERT PRE02-C
O common.h: 110 Macro contains unacceptable items CERT PRE03-C
O iconfig.h: 4 Enum, struct or union not typedeffed. CERT DCL05-C
O iconfig.h: 12 Found #define. CERT PRE03-C
O iconfig.h: 12 Use of function like macro. CERT PRE00-C
O iconfig.h: 14 Found #define. CERT PRE03-C
O iconfig.h: 14 Use of function like macro. CERT PRE00-C
O iconfig.h: 20 Enum, struct or union not typedeffed. CERT DCL05-C
O iconfig.h: 49 Enum, struct or union not typedeffed. CERT DCL05-C
O iconfig.h: 86 Found #define. CERT PRE03-C
O iconfig.h: 86 Macro replacement list needs parentheses. CERT PRE02-C
O parse.c: 21 Included file not protected with #define. CERT PRE06-C
O set.c: 21 Included file not protected with #define. CERT PRE06-C
O write.c: 21 Included file not protected with #define. CERT PRE06-C
O write.c: 24 Found #define. CERT PRE03-C
O write.c: 24 Define used for numeric constant. CERT DCL00-C
O write.c: 26 Found #define. CERT PRE03-C
O write.c: 26 Define used for numeric constant. CERT DCL00-C

[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_find
(23 to 39 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 27 function call with no prior declaration. CERT EXP37-C
M 27 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 28 function call with no prior declaration. CERT EXP37-C
M 28 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 29 function call with no prior declaration. CERT EXP37-C
M 29 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 34 function call with no prior declaration. CERT EXP37-C
M 34 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_section_index
(46 to 79 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 52 function call with no prior declaration. CERT EXP37-C
M 52 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 53 function call with no prior declaration. CERT EXP37-C
M 53 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 57 function call with no prior declaration. CERT EXP37-C
M 57 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 58 function call with no prior declaration. CERT EXP37-C
M 58 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 60 function call with no prior declaration. CERT EXP37-C
M 60 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 62 function call with no prior declaration. CERT EXP37-C
M 62 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 63 function call with no prior declaration. CERT EXP37-C
M 63 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 71 function call with no prior declaration. CERT EXP37-C
M 71 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 72 function call with no prior declaration. CERT EXP37-C
M 72 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 73 function call with no prior declaration. CERT EXP37-C
M 73 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 76 function call with no prior declaration. CERT EXP37-C
M 76 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 78 Pointer assignment to wider scope. CERT DCL30-C,MEM36-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_traverse
(81 to 117 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 87 function call with no prior declaration. CERT EXP37-C
M 87 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 93 function call with no prior declaration. CERT EXP37-C
M 93 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 94 Pointer assignment to wider scope. CERT DCL30-C,MEM36-C
M 99 Modification of string literal. CERT STR05-C,STR30-C
M 99 function call with no prior declaration. CERT EXP37-C
M 99 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 100 Modification of string literal. CERT STR05-C,STR30-C
M 101 Type conversion without cast. : int char is_list = **tmp CERT INT02-C,INT31-C
M 106 function call with no prior declaration. CERT EXP37-C
M 106 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 110 function call with no prior declaration. CERT EXP37-C
M 110 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 113 function call with no prior declaration. CERT EXP37-C
M 113 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 114 function call with no prior declaration. CERT EXP37-C
M 114 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 115 function call with no prior declaration. CERT EXP37-C
M 115 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 116 Pointer assignment to wider scope. CERT DCL30-C,MEM36-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_get_str
(119 to 148 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 124 function call with no prior declaration. CERT EXP37-C
M 124 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 125 function call with no prior declaration. CERT EXP37-C
M 125 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 128 function call with no prior declaration. CERT EXP37-C
M 128 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 129 function call with no prior declaration. CERT EXP37-C
M 129 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 132 function call with no prior declaration. CERT EXP37-C
M 132 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 140 function call with no prior declaration. CERT EXP37-C
M 140 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 142 function call with no prior declaration. CERT EXP37-C
M 142 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 143 function call with no prior declaration. CERT EXP37-C
M 143 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 147 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C
M 134 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_get_int
(150 to 158 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 157 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 154 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_get_bool
(160 to 168 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 167 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 167 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * str CERT INT01-C,INT02-C,INT07-C
M 167 Type conversion without cast. : int char ( int ) ( unsigned char ) ( * str ) ) == 'T' CERT INT02-C,INT31-C
M 167 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 167 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * str CERT INT01-C,INT02-C,INT07-C
M 167 Type conversion without cast. : int char ) == 'Y' CERT INT02-C,INT31-C
M 164 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_get_str
(170 to 179 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 174 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_get_int
(181 to 189 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 188 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 185 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_get_bool
(191 to 200 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 198 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 198 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * str CERT INT01-C,INT02-C,INT07-C
M 198 Type conversion without cast. : int char ( int ) ( unsigned char ) ( * str ) ) == 'T' CERT INT02-C,INT31-C
M 198 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 198 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * str CERT INT01-C,INT02-C,INT07-C
M 198 Type conversion without cast. : int char ) == 'Y' CERT INT02-C,INT31-C
M 199 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 199 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * str CERT INT01-C,INT02-C,INT07-C
M 199 Type conversion without cast. : int char ) == 'O' CERT INT02-C,INT31-C
M 199 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 199 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( str [ 1 ] CERT INT01-C,INT02-C,INT07-C
M 199 Type conversion without cast. : int char ) == 'N' CERT INT02-C,INT31-C
M 195 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_get_list
(202 to 230 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 208 function call with no prior declaration. CERT EXP37-C
M 208 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 209 function call with no prior declaration. CERT EXP37-C
M 209 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 212 function call with no prior declaration. CERT EXP37-C
M 212 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 217 function call with no prior declaration. CERT EXP37-C
M 217 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 222 Modification of string literal. CERT STR05-C,STR30-C
M 224 function call with no prior declaration. CERT EXP37-C
M 224 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 225 Modification of string literal. CERT STR05-C,STR30-C
M 225 function call with no prior declaration. CERT EXP37-C
M 225 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 228 function call with no prior declaration. CERT EXP37-C
M 228 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 229 Pointer assignment to wider scope. CERT DCL30-C,MEM36-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_nth
(232 to 250 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 236 function call with no prior declaration. CERT EXP37-C
M 236 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 237 function call with no prior declaration. CERT EXP37-C
M 237 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_index
(252 to 277 get.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 258 function call with no prior declaration. CERT EXP37-C
M 258 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 259 function call with no prior declaration. CERT EXP37-C
M 259 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






g_istr_equal
(23 to 26 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 25 function call with no prior declaration. CERT EXP37-C
M 25 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






g_istr_hash
(29 to 44 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 35 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 35 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * s CERT INT01-C,INT02-C,INT07-C
M 36 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_error
(46 to 51 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 48 function call with no prior declaration. CERT EXP37-C
M 48 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 49 function call with no prior declaration. CERT EXP37-C
M 49 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






node_add_comment
(53 to 68 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 57 function call with no prior declaration. CERT EXP37-C
M 57 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 62 function call with no prior declaration. CERT EXP37-C
M 62 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 64 function call with no prior declaration. CERT EXP37-C
M 64 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 66 function call with no prior declaration. CERT EXP37-C
M 66 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_get_token
(71 to 92 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 76 function call with no prior declaration. CERT EXP37-C
M 76 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 85 function call with no prior declaration. CERT EXP37-C
M 85 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 79 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 81 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_peek_token
(95 to 112 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 100 function call with no prior declaration. CERT EXP37-C
M 100 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 110 function call with no prior declaration. CERT EXP37-C
M 110 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 103 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 105 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_warn_missing
(115 to 126 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 120 function call with no prior declaration. CERT EXP37-C
M 120 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 125 function call with no prior declaration. CERT EXP37-C
M 125 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_symbol
(130 to 209 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 137 function call with no prior declaration. CERT EXP37-C
M 137 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 138 function call with no prior declaration. CERT EXP37-C
M 138 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 142 Value is not of appropriate type. : int char CERT INT01-C,INT02-C,INT07-C
M 148 Modification of string literal. CERT STR05-C,STR30-C
M 148 function call with no prior declaration. CERT EXP37-C
M 148 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 158 function call with no prior declaration. CERT EXP37-C
M 158 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 178 function call with no prior declaration. CERT EXP37-C
M 178 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 193 function call with no prior declaration. CERT EXP37-C
M 193 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 204 function call with no prior declaration. CERT EXP37-C
M 204 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 150 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 184 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 199 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 191 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 176 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 157 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_loop
(211 to 230 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 215 function call with no prior declaration. CERT EXP37-C
M 215 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 216 function call with no prior declaration. CERT EXP37-C
M 216 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 227 function call with no prior declaration. CERT EXP37-C
M 227 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_error_func
(232 to 244 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 238 function call with no prior declaration. CERT EXP37-C
M 238 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 243 function call with no prior declaration. CERT EXP37-C
M 243 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_init
(246 to 268 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 250 function call with no prior declaration. CERT EXP37-C
M 250 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 253 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 253 function call with no prior declaration. CERT EXP37-C
M 253 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 267 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse
(270 to 289 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 274 function call with no prior declaration. CERT EXP37-C
M 274 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 275 function call with no prior declaration. CERT EXP37-C
M 275 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 277 function call with no prior declaration. CERT EXP37-C
M 277 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 279 function call with no prior declaration. CERT EXP37-C
M 279 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 282 function call with no prior declaration. CERT EXP37-C
M 282 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 284 function call with no prior declaration. CERT EXP37-C
M 284 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 286 function call with no prior declaration. CERT EXP37-C
M 286 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 279 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_parse_data
(291 to 299 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 294 function call with no prior declaration. CERT EXP37-C
M 294 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 296 function call with no prior declaration. CERT EXP37-C
M 296 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_open
(301 to 321 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 307 function call with no prior declaration. CERT EXP37-C
M 307 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 309 function call with no prior declaration. CERT EXP37-C
M 309 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 312 function call with no prior declaration. CERT EXP37-C
M 312 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 313 function call with no prior declaration. CERT EXP37-C
M 313 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 315 function call with no prior declaration. CERT EXP37-C
M 315 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 317 function call with no prior declaration. CERT EXP37-C
M 317 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 318 function call with no prior declaration. CERT EXP37-C
M 318 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 320 Pointer assignment to wider scope. CERT DCL30-C,MEM36-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_close
(323 to 336 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 325 function call with no prior declaration. CERT EXP37-C
M 325 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 328 function call with no prior declaration. CERT EXP37-C
M 328 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 330 function call with no prior declaration. CERT EXP37-C
M 330 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 331 function call with no prior declaration. CERT EXP37-C
M 331 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 332 function call with no prior declaration. CERT EXP37-C
M 332 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 333 function call with no prior declaration. CERT EXP37-C
M 333 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 334 function call with no prior declaration. CERT EXP37-C
M 334 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 335 function call with no prior declaration. CERT EXP37-C
M 335 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_change_file_name
(338 to 348 parse.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 340 function call with no prior declaration. CERT EXP37-C
M 340 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 341 function call with no prior declaration. CERT EXP37-C
M 341 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 343 function call with no prior declaration. CERT EXP37-C
M 343 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 344 function call with no prior declaration. CERT EXP37-C
M 344 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






cache_remove
(23 to 33 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 27 function call with no prior declaration. CERT EXP37-C
M 27 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 29 function call with no prior declaration. CERT EXP37-C
M 29 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 30 function call with no prior declaration. CERT EXP37-C
M 30 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 31 function call with no prior declaration. CERT EXP37-C
M 31 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_remove
(35 to 60 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 37 function call with no prior declaration. CERT EXP37-C
M 37 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 44 function call with no prior declaration. CERT EXP37-C
M 44 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 50 function call with no prior declaration. CERT EXP37-C
M 50 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 58 function call with no prior declaration. CERT EXP37-C
M 58 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 59 function call with no prior declaration. CERT EXP37-C
M 59 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 55 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_list_remove
(62 to 71 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 66 function call with no prior declaration. CERT EXP37-C
M 66 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 67 function call with no prior declaration. CERT EXP37-C
M 67 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_clear
(73 to 80 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 75 function call with no prior declaration. CERT EXP37-C
M 75 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 76 function call with no prior declaration. CERT EXP37-C
M 76 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 79 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_nodes_remove_all
(82 to 88 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 84 function call with no prior declaration. CERT EXP37-C
M 84 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 87 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_set_str
(90 to 121 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 95 function call with no prior declaration. CERT EXP37-C
M 95 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 96 function call with no prior declaration. CERT EXP37-C
M 96 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 108 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 110 function call with no prior declaration. CERT EXP37-C
M 110 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 112 function call with no prior declaration. CERT EXP37-C
M 112 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 113 function call with no prior declaration. CERT EXP37-C
M 113 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 115 Type conversion without cast. : int bool node -> type = no_key CERT INT02-C,INT31-C
M 116 function call with no prior declaration. CERT EXP37-C
M 116 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 119 function call with no prior declaration. CERT EXP37-C
M 119 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_set_int
(123 to 129 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 127 function call with no prior declaration. CERT EXP37-C
M 127 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_set_str
(136 to 147 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 140 function call with no prior declaration. CERT EXP37-C
M 140 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 142 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_set_int
(149 to 155 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 153 function call with no prior declaration. CERT EXP37-C
M 153 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_add_list
(162 to 168 set.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 166 Modification of string literal. CERT STR05-C,STR30-C
M 167 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_write_indent
(30 to 41 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 35 function call with no prior declaration. CERT EXP37-C
M 35 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_write_str
(43 to 76 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 47 function call with no prior declaration. CERT EXP37-C
M 47 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 48 function call with no prior declaration. CERT EXP37-C
M 48 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 59 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 61 function call with no prior declaration. CERT EXP37-C
M 61 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 64 Modification of string literal. CERT STR05-C,STR30-C
M 67 function call with no prior declaration. CERT EXP37-C
M 67 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 67 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C
M 70 Modification of string literal. CERT STR05-C,STR30-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_has_specials
(78 to 89 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 80 function call with no prior declaration. CERT EXP37-C
M 80 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 83 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 83 Value is not of appropriate type. : unsigned char char ( int ) ( unsigned char ) ( * text CERT INT01-C,INT02-C,INT07-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_escape_string
(91 to 114 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 96 function call with no prior declaration. CERT EXP37-C
M 96 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 98 function call with no prior declaration. CERT EXP37-C
M 98 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 101 function call with no prior declaration. CERT EXP37-C
M 101 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 103 function call with no prior declaration. CERT EXP37-C
M 103 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 105 function call with no prior declaration. CERT EXP37-C
M 105 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 109 function call with no prior declaration. CERT EXP37-C
M 109 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 112 function call with no prior declaration. CERT EXP37-C
M 112 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 113 Pointer assignment to wider scope. CERT DCL30-C,MEM36-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_write_word
(116 to 132 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 121 function call with no prior declaration. CERT EXP37-C
M 121 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 122 function call with no prior declaration. CERT EXP37-C
M 122 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 129 function call with no prior declaration. CERT EXP37-C
M 129 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_write_node
(136 to 203 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 138 function call with no prior declaration. CERT EXP37-C
M 138 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 139 function call with no prior declaration. CERT EXP37-C
M 139 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 143 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 145 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 149 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 155 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 164 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 175 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 184 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_node_get_length
(207 to 234 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 214 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 218 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 224 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 224 Signed/unsigned conversion without cast. : int unsigned int len += strlen CERT INT02-C,INT31-C,STR34-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_block_fit_one_line
(255 to 262 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 257 function call with no prior declaration. CERT EXP37-C
M 257 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 258 function call with no prior declaration. CERT EXP37-C
M 258 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_write_block
(264 to 298 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 269 function call with no prior declaration. CERT EXP37-C
M 269 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 270 function call with no prior declaration. CERT EXP37-C
M 270 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 271 function call with no prior declaration. CERT EXP37-C
M 271 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






config_write
(300 to 329 write.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 305 function call with no prior declaration. CERT EXP37-C
M 305 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 306 function call with no prior declaration. CERT EXP37-C
M 306 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 307 function call with no prior declaration. CERT EXP37-C
M 307 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 309 function call with no prior declaration. CERT EXP37-C
M 309 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 313 function call with no prior declaration. CERT EXP37-C
M 313 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 315 function call with no prior declaration. CERT EXP37-C
M 315 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 316 function call with no prior declaration. CERT EXP37-C
M 316 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 322 function call with no prior declaration. CERT EXP37-C
M 322 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 325 function call with no prior declaration. CERT EXP37-C
M 325 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 319 Actual and formal parameters inconsistent (MR). CERT EXP37-C
M 313 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]




Key to Terms


Standards violations for procedures are printed in tables with code markers as follows:


Code (Line) Violation Standard
M (Source line number) [Text of Mandatory standard] [Appropriate rule reference]
C   [Text of Checking standard]  
O   [Text of Optional standard]  
[Source: Text of line from Source file]


                         Checking standards are considered mandatory but individual instances may be overridden by adding annotations to the source code
                         Optional standards provide additional quality criteria but may be violated

                         For some standards violations, additional information is provided in results tables
                         Note that source lines do not show macro expansions

                         "Off" in Summary tables indicates that a standard is switched off in the pen.dat file
                         "MR" in Summary tables indicates a MISRA Restricted standard which cannot be checked without the MISRA licence option.


A summary is given of the pass/fail result of each program component as follows:


Components which pass all standards are marked: Pass
Components which fail only Optional standards are marked: Conditional Pass
Components which fail on insufficient comments only are marked: Comment FAIL
Components which violate Mandatory standards are marked: FAIL



Procedure Results table breakdown (Example Only)


Unique Violations    
     
65 - 150
35 - 39 -



                         The Violation density for a function is the number of violations per reformatted line, expressed as a percentage.
                         It is an indication of code quality.

                         Functions with a high violation density are likely to be smaller functions with a large number of violations.

                         Lower density may indicate larger functions with fewer violations.

                                        (nViols / nRefLines) x 100

                         where:

                                        nViols = number of standard violations in a function.

                         and:

                                        nRefLines = number of reformatted lines in a function.

                         The unique standards failure ratio is an indication of variety of standards violations in a module.

                         Thus a function containing one instance of several different standards will have a high ratio,
                         while a function that has violated only one standards will have a low ratio.


[ Top of Report | Procedure Table | Contents ]


End of Code Review Report

Copyright © 2009 Liverpool Data Research Associates